import 'dart:collection';

class NewsModel {
  int? newsId;
  String? title;
  String? thumbnailUrl;
  String? publishDatetime;

  NewsModel({this.newsId, this.title, this.thumbnailUrl, this.publishDatetime});

  NewsModel.fromJson(Map<String, dynamic> json) {
    newsId = json['newsId'];
    title = json['title'];
    thumbnailUrl = json['thumbnailUrl'];
    publishDatetime = json['publishDatetime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = HashMap();
    data['newsId'] = newsId;
    data['title'] = title;
    data['thumbnailUrl'] = thumbnailUrl;
    data['publishDatetime'] = publishDatetime;
    return data;
  }
}